import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 样式引入
import '@/assets/style/index.scss'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import "@/assets/style/iview.less";

import Pagination from "@/components/Pagination";
import cImage from '@/components/cImage'
import cModel from '@/components/cModel'
import navbar from '@/components/navbar'
import CMessageBox from '@/components/cMessageBox'

import vueSeamlessScroll from 'vue-seamless-scroll'
import VueScroller from 'vue-scroller'
import VueClipboard from 'vue-clipboard2'
import 'viewerjs/dist/viewer.css'
import Viewer from "v-viewer"
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)

import mixins from "@/mixins";
Vue.mixin(mixins)

import electronIpc from '@/common/utils/electronIpc';
Vue.prototype.$ipc = electronIpc;
window.ipc = electronIpc;

import '@/assets/icons'
Vue.use(CMessageBox)
Vue.use(Viewer)
Vue.use(VueScroller)
Vue.use(vueSeamlessScroll)
Vue.use(ViewUI)
Vue.component('cImage', cImage)
Vue.component('Pagination', Pagination)
Vue.component('cModel', cModel)
Vue.component('navbar', navbar)
Vue.config.productionTip = false
Vue.use(VueClipboard)  //必须这样子引用 否则会报错的

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
